package customfields;

import net.rim.device.api.ui.Color;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.container.VerticalFieldManager;
import net.rim.device.api.ui.decor.Background;
import net.rim.device.api.ui.decor.BackgroundFactory;
import beans.News;

public class NewsModuleField extends VerticalFieldManager{

	private WhiteLabelField date;
	private LabelField title;
	private LabelField content;

	public NewsModuleField(News n, long style){
		super(style);

		date = new WhiteLabelField(n.getDate());
		title = new LabelField(n.getTitle());
		content = new LabelField(n.getContent());

		this.add(date);
		this.add(title);
		this.add(content);

		Background thisBack = BackgroundFactory.createSolidTransparentBackground(Color.WHITE, 100);
		this.setBackground(thisBack);

	}
	
	protected boolean navigationClick(int status, int time){
		return true;
	}
	protected boolean navigationUnclick(int status, int time){
		return true;
	}

}
